//public IHttpActionResult GetAllRequest()
        //{
        //    try
        //    {
        //        var q = ServiceManagmentToBirthBll.GetAllReques();
        //        if (q != null)
        //            return Ok(q);
        //        return NotFound();
        //    }

        //    catch (Exception e)
        //    {
        //        return BadRequest(e.Message);
        //    }
        //}
        public IHttpActionResult GetNumOfMothers()
        {
            try
            {
                var q = MotherBll.GetNumOfMothers();
                if (q != null)
                {
                    return(Ok(q));
                }
                return(NotFound());
            }

            catch (Exception e)
            {
                return(BadRequest(e.Message));
            }
        }
 public long Post(MotherDto mother)
 {
     return(MotherBll.AddMother(mother));
 }
Exemple #3
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     MotherBll.CheckTimeOfBirth();
 }