Exemplo n.º 1
0
 public static async Task <IResult> Sigma(int beanid, int days, IMovementService movementService)
 {
     if (beanid <= 0)
     {
         return(Results.BadRequest(new ApiError(string.Format(Strings.Invalid, "bean id"))));
     }
     if (days <= 0)
     {
         return(Results.BadRequest(new ApiError(string.Format(Strings.Invalid, "number of days"))));
     }
     return(Results.Ok(await movementService.GetStandardDeviationAsync(beanid, days)));
 }