forked from ddrilling/AsbCloudServer
Мелкие правки
This commit is contained in:
parent
860da5c35e
commit
4c57268433
@ -81,7 +81,7 @@ namespace AsbCloudDb.Model
|
||||
/// статус вопроса
|
||||
/// </summary>
|
||||
[Column("state"), Comment("Статус вопроса")]
|
||||
public int State { get; set; }
|
||||
public int State { get; set; } = Faq.StateOpened;
|
||||
|
||||
/// <summary>
|
||||
/// Счетчик повторений вопроса
|
||||
|
@ -37,7 +37,7 @@ namespace AsbCloudInfrastructure.Repository
|
||||
|
||||
if (request.IsFrequently)
|
||||
{
|
||||
query = query.Where(o => o.IsFrequently == true);
|
||||
query = query.Where(o => o.IsFrequently);
|
||||
}
|
||||
if (request.HasAnswer)
|
||||
{
|
||||
|
@ -128,16 +128,16 @@ namespace AsbCloudWebApi.Controllers
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Удаляет вопрос
|
||||
/// Помечает вопрос как удаленный
|
||||
/// </summary>
|
||||
/// <param name="idWell">id скважины</param>
|
||||
/// <param name="id">id вопроса</param>
|
||||
/// <param name="token">Токен отмены задачи</param>
|
||||
/// <returns>Количество удаленных из БД строк</returns>
|
||||
[HttpDelete("{id}")]
|
||||
[HttpPut("{id}")]
|
||||
[Permission]
|
||||
[ProducesResponseType(typeof(int), (int)System.Net.HttpStatusCode.OK)]
|
||||
public async Task<IActionResult> DeleteAsync(int idWell, int id, CancellationToken token)
|
||||
public async Task<IActionResult> MarkAsDeletedAsync(int idWell, int id, CancellationToken token)
|
||||
{
|
||||
if (!await CanUserAccessToWellAsync(idWell,
|
||||
token).ConfigureAwait(false))
|
||||
|
Loading…
Reference in New Issue
Block a user